﻿using System.Linq;

public class ReduceTailAndSpeed : IFieldElementBehavior {
	public void DoCollision() {
		PlayerStats.GetInstance.IncreaseScore(Constants.FOOD_POINTS);
		PlayerStats.GetInstance.ReduceSpeed(Constants.POWER_SPEED);
		Managers.Snake.ReduceTail(GameData.GetInstance.Bodies.Last());
	}
}